<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
</head>

<body>
<?php
  $pg=1*6.89;
  $xj=2*7.99;
  $jz=3*3.99;
  $sum=($pg+$xj+$jz)*0.8;
?>
<table width="500" border="1">
  <tbody>
    <tr>
      <th scope="col">商品名称</th>
      <th scope="col">购买数量</th>
      <th scope="col">商品价格</th>
    </tr>
    <tr>
      <td align="center">香蕉</td>
      <td align="center">2</td>
      <td align="center">7.99</td>
    </tr>
    <tr>
      <td align="center">苹果</td>
      <td align="center">1</td>
      <td align="center">6.89</td>
    </tr>
    <tr>
      <td align="center">橘子</td>
      <td align="center">3</td>
      <td align="center">3.99</td>
    </tr>
    <tr>
      <td height="29" align="right">&nbsp;</td>
      <td height="29" align="right">&nbsp;</td>
      <td height="29" align="center">商品折扣：0.8</td>
    </tr>
    <tr>
      <td height="59" colspan="3" align="right">打折后购买商品总价钱:<?php 
      echo $sum ?>元</td>
    </tr>
  </tbody>
</table>
</body>
</html>